package com.zmm.myyimixian.bean;

import java.util.List;

/**
 * Created by wencai2015 on 2016/10/22.
 */

public class HomeGoods {

    /**
     * good : {"id":"21067","name":"新疆库尔勒香梨","title":"【新梨上架】库尔勒香梨15个仅需19.9元  京津包邮","promotion_img":"/images/tag/chaozhi.png","img_ratio":2,"img_url":["2016/10/17/kuerle_lb_01.jpg","2016/10/17/kuerle_lb_02.jpg","2016/10/17/kuerle_lb_03.jpg"],"unit_desc":"A级/15个/每个约100g/份","productby":"新疆","unit_price":"19.9","unit_old_price":"59.7","sale_status":"","start_time":0,"stock_count":"","should_buy_count":33333,"count_zero_reason":"","is_buying_group":"1","buying_group_count":"3","buying_group_price":"19.9","promotion_info":[],"promo_type":"/images/detail_tag/xianshizhekou.png","new_promo_type":"/images/v2_tag/chaozhifengqiang.png","new_image_ratio":1,"slides_image_ratio":1.54,"funtion_desc":"","function_ratio":"0.179","funtion_imgurl":"2016/10/14/kuerle_xq_1013.jpg","function_new_imgurl":[{"url":"2016/10/14/kuerle_xq_1013.jpg","ratio":"0.179"},{"url":"2016/10/18/yimixianpinpaiqiang_1018.jpg","ratio":"0.734"}]}
     * share : {"title":"洗脑推荐一米鲜新疆库尔勒香梨，新鲜水果送到手！","icon_imgurl":"http://x.1mxian.com/images/bonus/icon.jpg","shareurl":"http://x.1mxian.com/goods/hot/21067","share_content":"吃水果，一米鲜！产地直采，新鲜到手，只为爱护你才来到这个世界！"}
     * comment_btn_name : 您已购买过该商品，现在去评价>>
     * can_comment : false
     * taste_desc : 口感
     * freshness_desc : 推荐度
     * comment_show : true
     * goods_level : 0
     */

    private GoodDetailBean good_detail;

    public GoodDetailBean getGood_detail() {
        return good_detail;
    }

    public void setGood_detail(GoodDetailBean good_detail) {
        this.good_detail = good_detail;
    }

    public static class GoodDetailBean {
        /**
         * id : 21067
         * name : 新疆库尔勒香梨
         * title : 【新梨上架】库尔勒香梨15个仅需19.9元  京津包邮
         * promotion_img : /images/tag/chaozhi.png
         * img_ratio : 2
         * img_url : ["2016/10/17/kuerle_lb_01.jpg","2016/10/17/kuerle_lb_02.jpg","2016/10/17/kuerle_lb_03.jpg"]
         * unit_desc : A级/15个/每个约100g/份
         * productby : 新疆
         * unit_price : 19.9
         * unit_old_price : 59.7
         * sale_status :
         * start_time : 0
         * stock_count :
         * should_buy_count : 33333
         * count_zero_reason :
         * is_buying_group : 1
         * buying_group_count : 3
         * buying_group_price : 19.9
         * promotion_info : []
         * promo_type : /images/detail_tag/xianshizhekou.png
         * new_promo_type : /images/v2_tag/chaozhifengqiang.png
         * new_image_ratio : 1
         * slides_image_ratio : 1.54
         * funtion_desc :
         * function_ratio : 0.179
         * funtion_imgurl : 2016/10/14/kuerle_xq_1013.jpg
         * function_new_imgurl : [{"url":"2016/10/14/kuerle_xq_1013.jpg","ratio":"0.179"},{"url":"2016/10/18/yimixianpinpaiqiang_1018.jpg","ratio":"0.734"}]
         */

        private GoodBean good;
        /**
         * title : 洗脑推荐一米鲜新疆库尔勒香梨，新鲜水果送到手！
         * icon_imgurl : http://x.1mxian.com/images/bonus/icon.jpg
         * shareurl : http://x.1mxian.com/goods/hot/21067
         * share_content : 吃水果，一米鲜！产地直采，新鲜到手，只为爱护你才来到这个世界！
         */

        private ShareBean share;
        private String comment_btn_name;
        private boolean can_comment;
        private String taste_desc;
        private String freshness_desc;
        private boolean comment_show;
        private int goods_level;

        public GoodBean getGood() {
            return good;
        }

        public void setGood(GoodBean good) {
            this.good = good;
        }

        public ShareBean getShare() {
            return share;
        }

        public void setShare(ShareBean share) {
            this.share = share;
        }

        public String getComment_btn_name() {
            return comment_btn_name;
        }

        public void setComment_btn_name(String comment_btn_name) {
            this.comment_btn_name = comment_btn_name;
        }

        public boolean isCan_comment() {
            return can_comment;
        }

        public void setCan_comment(boolean can_comment) {
            this.can_comment = can_comment;
        }

        public String getTaste_desc() {
            return taste_desc;
        }

        public void setTaste_desc(String taste_desc) {
            this.taste_desc = taste_desc;
        }

        public String getFreshness_desc() {
            return freshness_desc;
        }

        public void setFreshness_desc(String freshness_desc) {
            this.freshness_desc = freshness_desc;
        }

        public boolean isComment_show() {
            return comment_show;
        }

        public void setComment_show(boolean comment_show) {
            this.comment_show = comment_show;
        }

        public int getGoods_level() {
            return goods_level;
        }

        public void setGoods_level(int goods_level) {
            this.goods_level = goods_level;
        }

        public static class GoodBean {
            private String id;
            private String name;
            private String title;
            private String promotion_img;
            private int img_ratio;
            private String unit_desc;
            private String productby;
            private String unit_price;
            private String unit_old_price;
            private String sale_status;
            private int start_time;
            private String stock_count;
            private int should_buy_count;
            private String count_zero_reason;
            private String is_buying_group;
            private String buying_group_count;
            private String buying_group_price;
            private String promo_type;
            private String new_promo_type;
            private int new_image_ratio;
            private double slides_image_ratio;
            private String funtion_desc;
            private String function_ratio;
            private String funtion_imgurl;
            private List<String> img_url;
            private List<?> promotion_info;
            /**
             * url : 2016/10/14/kuerle_xq_1013.jpg
             * ratio : 0.179
             */

            private List<FunctionNewImgurlBean> function_new_imgurl;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getPromotion_img() {
                return promotion_img;
            }

            public void setPromotion_img(String promotion_img) {
                this.promotion_img = promotion_img;
            }

            public int getImg_ratio() {
                return img_ratio;
            }

            public void setImg_ratio(int img_ratio) {
                this.img_ratio = img_ratio;
            }

            public String getUnit_desc() {
                return unit_desc;
            }

            public void setUnit_desc(String unit_desc) {
                this.unit_desc = unit_desc;
            }

            public String getProductby() {
                return productby;
            }

            public void setProductby(String productby) {
                this.productby = productby;
            }

            public String getUnit_price() {
                return unit_price;
            }

            public void setUnit_price(String unit_price) {
                this.unit_price = unit_price;
            }

            public String getUnit_old_price() {
                return unit_old_price;
            }

            public void setUnit_old_price(String unit_old_price) {
                this.unit_old_price = unit_old_price;
            }

            public String getSale_status() {
                return sale_status;
            }

            public void setSale_status(String sale_status) {
                this.sale_status = sale_status;
            }

            public int getStart_time() {
                return start_time;
            }

            public void setStart_time(int start_time) {
                this.start_time = start_time;
            }

            public String getStock_count() {
                return stock_count;
            }

            public void setStock_count(String stock_count) {
                this.stock_count = stock_count;
            }

            public int getShould_buy_count() {
                return should_buy_count;
            }

            public void setShould_buy_count(int should_buy_count) {
                this.should_buy_count = should_buy_count;
            }

            public String getCount_zero_reason() {
                return count_zero_reason;
            }

            public void setCount_zero_reason(String count_zero_reason) {
                this.count_zero_reason = count_zero_reason;
            }

            public String getIs_buying_group() {
                return is_buying_group;
            }

            public void setIs_buying_group(String is_buying_group) {
                this.is_buying_group = is_buying_group;
            }

            public String getBuying_group_count() {
                return buying_group_count;
            }

            public void setBuying_group_count(String buying_group_count) {
                this.buying_group_count = buying_group_count;
            }

            public String getBuying_group_price() {
                return buying_group_price;
            }

            public void setBuying_group_price(String buying_group_price) {
                this.buying_group_price = buying_group_price;
            }

            public String getPromo_type() {
                return promo_type;
            }

            public void setPromo_type(String promo_type) {
                this.promo_type = promo_type;
            }

            public String getNew_promo_type() {
                return new_promo_type;
            }

            public void setNew_promo_type(String new_promo_type) {
                this.new_promo_type = new_promo_type;
            }

            public int getNew_image_ratio() {
                return new_image_ratio;
            }

            public void setNew_image_ratio(int new_image_ratio) {
                this.new_image_ratio = new_image_ratio;
            }

            public double getSlides_image_ratio() {
                return slides_image_ratio;
            }

            public void setSlides_image_ratio(double slides_image_ratio) {
                this.slides_image_ratio = slides_image_ratio;
            }

            public String getFuntion_desc() {
                return funtion_desc;
            }

            public void setFuntion_desc(String funtion_desc) {
                this.funtion_desc = funtion_desc;
            }

            public String getFunction_ratio() {
                return function_ratio;
            }

            public void setFunction_ratio(String function_ratio) {
                this.function_ratio = function_ratio;
            }

            public String getFuntion_imgurl() {
                return funtion_imgurl;
            }

            public void setFuntion_imgurl(String funtion_imgurl) {
                this.funtion_imgurl = funtion_imgurl;
            }

            public List<String> getImg_url() {
                return img_url;
            }

            public void setImg_url(List<String> img_url) {
                this.img_url = img_url;
            }

            public List<?> getPromotion_info() {
                return promotion_info;
            }

            public void setPromotion_info(List<?> promotion_info) {
                this.promotion_info = promotion_info;
            }

            public List<FunctionNewImgurlBean> getFunction_new_imgurl() {
                return function_new_imgurl;
            }

            public void setFunction_new_imgurl(List<FunctionNewImgurlBean> function_new_imgurl) {
                this.function_new_imgurl = function_new_imgurl;
            }

            public static class FunctionNewImgurlBean {
                private String url;
                private String ratio;

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }

                public String getRatio() {
                    return ratio;
                }

                public void setRatio(String ratio) {
                    this.ratio = ratio;
                }
            }
        }

        public static class ShareBean {
            private String title;
            private String icon_imgurl;
            private String shareurl;
            private String share_content;

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getIcon_imgurl() {
                return icon_imgurl;
            }

            public void setIcon_imgurl(String icon_imgurl) {
                this.icon_imgurl = icon_imgurl;
            }

            public String getShareurl() {
                return shareurl;
            }

            public void setShareurl(String shareurl) {
                this.shareurl = shareurl;
            }

            public String getShare_content() {
                return share_content;
            }

            public void setShare_content(String share_content) {
                this.share_content = share_content;
            }
        }
    }
}
